package cn.maidouya.basic.query;

import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  分页的公共类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    private Integer currentPage = 1;
    private Integer pageSize = 5;
    // 高级查询
    private String keyword;
    public Integer getBegin(){
        return (currentPage-1)*pageSize;
    }
}